<template>
  <view>
    <editPage ref="editPage" :options="page.options"></editPage>
  </view>
</template>

<script setup>
  import EditPage from '@/pages/familyPage/components/editPage.vue';
  import { onMounted, reactive, ref } from 'vue';
  import { onLoad } from '@dcloudio/uni-app';

  const page = reactive({
    options: {},
  });
  onLoad((options) => {
    page.options = options;
    // if(typeof uni.getStorageSync('setFamilyShare') == 'string'){
    //   page.options = JSON.parse(uni.getStorageSync('setFamilyShare'))
    // }else{
    //   page.options = uni.getStorageSync('setFamilyShare')
    // }
  });
  const editPage = ref();
  onMounted(async () => {
    await editPage._value.getFamilyDetail();
  });
</script>


<style scoped lang="scss">

</style>
